package edu.sctu.practice.class02.shuqiqi.test04;

/**
 * Created by admin on 2015/10/12.
 */
public class Number {
    private int n1, n2;
    double sum, subtration, multiplication, division;

    public Number(int n1, int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public double sum() {
        sum = n1 + n2;
        return sum;
    }

    public double getSubtration() {
        subtration = n1 - n2;
        return subtration;
    }

    public double getMutiplication() {
        multiplication = n1 * n2;
        return multiplication;
    }

    public double getDivision() {
        division = n1 / n2;
        return division;
    }
}
